package com.hjq.fcloud.http.api;

import com.hjq.fcloud.http.Urls;
import com.hjq.http.config.IRequestApi;

import java.io.Serializable;
import java.util.ArrayList;


public final class InitAppApi implements IRequestApi {
    public InitAppApi(String fnc_id) {
        this.fnc_id = fnc_id;
    }

    @Override
    public String getApi() {
        return Urls.URL_MAIN_INIT;
    }


    private String fnc_id;

    public static class RetJson {
        public ArrayList<Mean> menu;
        public InfoBean info;

        public InfoBean getInfo() {
            return info;
        }

        public void setInfo(InfoBean info) {
            this.info = info;
        }

        public ArrayList<Mean> getMenu() {
            return menu;
        }

        public void setMenu(ArrayList<Mean> menu) {
            this.menu = menu;
        }

        public static class Mean {
            private String menu_id;
            private String CODE;
            private String title;
            private String icon;
            private int message;
            private String biz_code;
            private int add;
            private int edit;
            private int del;

            public int getAdd() {
                return add;
            }

            public void setAdd(int add) {
                this.add = add;
            }

            public int getEdit() {
                return edit;
            }

            public void setEdit(int edit) {
                this.edit = edit;
            }

            public int getDel() {
                return del;
            }

            public void setDel(int del) {
                this.del = del;
            }

            public String getMenu_id() {
                return menu_id;
            }

            public void setMenu_id(String menu_id) {
                this.menu_id = menu_id;
            }

            public String getBiz_code() {
                return biz_code;
            }

            public void setBiz_code(String biz_code) {
                this.biz_code = biz_code;
            }

            public String getCODE() {
                return CODE;
            }

            public void setCODE(String CODE) {
                this.CODE = CODE;
            }

            public String getTitle() {
                return title == null ? "" : title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public int getMessage() {
                return message;
            }

            public void setMessage(int message) {
                this.message = message;
            }
        }
    }

    public static class InfoBean implements Serializable {
        private String user_name;
        private String corp_name;
        private String corp_type;//99表示平台方

        public String getCorp_type() {
            return corp_type;
        }

        public void setCorp_type(String corp_type) {
            this.corp_type = corp_type;
        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public String getCorp_name() {
            return corp_name;
        }

        public void setCorp_name(String corp_name) {
            this.corp_name = corp_name;
        }
    }
}